from django.conf.urls.defaults import *
import os

urlpatterns = patterns('sirogi.documents.views',
	(r'^$', 'index'),
	(r'^send_to_rev/(?P<id_doc>\d+)/$', 'send_to_rev'),
	(r'^view_document/(?P<docNum>\d+)/$', 'viewIt'),
	(r'^list_docs/$', 'listDocs'),
	(r'^add_colab/(?P<numDoc>\d+)/$', 'addColab'),
	(r'^list_approved_view_docs/$', 'listApprovedView'),
	(r'^search/list_docs/$', 'listEdit'),
	(r'^write_document/save/$', 'save'),
	(r'^write_document/$', 'write'),
	(r'^edit_document/(?P<docNum>\d+)/$', 'edit'), # when you go to the edit form after finding a document
	(r'^edit_document/(?P<docNum>\d+)/save2/$', 'save2'), # when you save after editing
	(r'^search/$', 'search'), # document search form
	#(r'^get_document/(?P<docNum>\d+)', 'getDocument'),
	#(r'^list/', 'listl'),
)
